package cn.stylefeng.guns.modular.gridsystem.temperature.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import cn.stylefeng.guns.modular.gridsystem.model.param.BizGatewayChannelParam;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class BizTemperatureChannelParam extends BaseParam {

    private Integer stationId;

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {BaseParam.edit.class, BaseParam.delete.class})
    private Integer id;

    /**
     * 通道
     */
    @NotNull(message = "通道不能为空", groups = {BaseParam.add.class, BaseParam.edit.class})
    private String gatewayChannel;

    // @NotNull(message = "通道类型不能为空", groups = {BaseParam.add.class, BaseParam.edit.class})
    // private Integer channelType;
//    @NotNull(message = "阈值", groups = {BaseParam.add.class, BaseParam.edit.class})
//    private Integer tempValue;

    private Double chaValue;

    private Double maxValue;

    /**
     * 安装位置
     */
    @NotNull(message = "安装位置不能为空", groups = {BaseParam.add.class, BaseParam.edit.class})
    private String installLocation;

    /**
     * 监听设备id(变压器）
     */
    @NotNull(message = "监听设备id不能为空", groups = {BaseParam.add.class, BaseParam.edit.class, BizGatewayChannelParam.mark.class})
    private Integer deviceId;


    @NotNull(message = "gatewayId不能为空", groups = {BaseParam.add.class, BaseParam.edit.class})
    private Integer gatewayId;


    /**
     * 解绑校验分组
     */
    public @interface unbinding {
    }

    /**
     * 标记校验分组
     */
    public @interface mark {
    }

}
